import request from '@/utils/request'

// 查询慰问金申请列表
export function listPayments(query) {
  return request({
    url: '/system/payments/list',
    method: 'get',
    params: query
  })
}

// 查询慰问金申请详细
export function getPayments(id) {
  return request({
    url: '/system/payments/' + id,
    method: 'get'
  })
}

// 新增慰问金申请
export function addPayments(data) {
  return request({
    url: '/system/payments',
    method: 'post',
    data: data
  })
}

// 修改慰问金申请
export function updatePayments(data) {
  return request({
    url: '/system/payments',
    method: 'put',
    data: data
  })
}

// 删除慰问金申请
export function delPayments(id) {
  return request({
    url: '/system/payments/' + id,
    method: 'delete'
  })
}
